{extend name="base"/}
{block name="resources"}
<style>
	.ns-item-block-parent .ns-item-poa-pic{margin-top: 0;background-image: linear-gradient(to right, #fb8700, #fb6400);text-align: center;color: #FFFFFF;width: 70px;height: 30px;line-height: 30px;border-bottom-left-radius: 3px;}
	.ns-empty-body {
		width: 100%;
		text-align: center;
	}
</style>
{/block}
{block name="main"}
<div class="layui-card ns-card-common ns-card-brief">
	<div class="layui-card-header">
		<span class="ns-card-title">平台营销</span>
	</div>
	<div class="layui-card-body">
		<div class="site_list ns-item-block-parent ns-item-five">
			{foreach $promotion as $list_k => $list_v}
			{if  condition="$list_v['show_type'] eq 'admin'"}
				{empty name="$list_v['is_developing']"}
				<a class="ns-item-block ns-item-block-hover-a" href="{:addon_url($list_v['url'])}">
					<div class="ns-item-block-wrap">
						<div class="ns-item-pic">
							<img src="{:img($list_v.icon)}" />
						</div>
						<div class="ns-item-con">
							<div class="ns-item-content-title">{$list_v.title}</div>
							<p class="ns-item-content-desc">{$list_v.description}</p>
						</div>
					</div>
	
				</a>
				{else/}
				<a class="ns-item-block ns-item-block-hover-a" href="#">
					<div class="ns-item-block-wrap">
						<div class="ns-item-pic">
							<img src="{:img($list_v.icon)}" />
						</div>
						<div class="ns-item-con">
							<div class="ns-item-content-title">{$list_v.title}</div>
							<p class="ns-item-content-desc">{$list_v.description}</p>
						</div>
						<div class="ns-item-poa-pic">
							敬请期待
						</div>
					</div>
	
				</a>
				{/empty}
			{/if}
			{/foreach}
		</div>
	</div>
</div>
{/block}
{block name="script"}
<script>
	var _len = $(".ns-item-block-parent .ns-item-block").length;
	
	if (_len == 0) {
		$(".ns-item-block-parent").html('<div class="ns-empty-body"><img src="__STATIC__/img/null_img.png" /><p>平台营销正在开发中，敬请期待~</p></div>');
	}
</script>
{/block}